package com.yiding.sys.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class SysUser {
	private Integer id;

	@NotEmpty
	@NotNull
	@Size(min = 5, max = 16)
	private String username;

	@NotEmpty
	@NotNull
	@Size(min = 5, max = 32)
	private String password;

	private String salt;

	/**
	 * 头像url
	 */
	private String avatarUrl;

	private LocalDateTime createTime;

	private LocalDateTime updateTime;

	private Byte status;
}